package cn.hackcloud.concurrency.future;

/**
 * Future接口定义
 * Created by www.ibfbc.com
 */
public interface Future<T> {
    //返回计算结果，该方法会陷入阻塞状态
    T get() throws InterruptedException;

    //判断任务是否已经被执行完成
    boolean done();
}
